package com.example.gustavo.hello.net;

import com.android.volley.toolbox.HurlStack;
import com.squareup.okhttp.OkHttpClient;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;


/**
 * Created by gustavo on 2015/9/11.
 */

public class OkHttpUrlStack extends HurlStack {
    /*private final OkUrlFactory okUrlFactory;

    public OkHttpUrlStack() {
        this(new OkUrlFactory(new OkHttpClient()));
    }

    public OkHttpUrlStack(OkUrlFactory okUrlFactory) {
        if (okUrlFactory == null) {
            throw new NullPointerException("Client must not be null.");
        }
        this.okUrlFactory = okUrlFactory;
    }

    @Override
    protected HttpURLConnection createConnection(URL url) throws IOException {
        return okUrlFactory.open(url);
    }*/
}
